package com.it.App.eneity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false) // 实现equals方法和hashcode方法
@Component
@AllArgsConstructor
@NoArgsConstructor
public class Permission implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "permission_id", type = IdType.AUTO)
  private Integer permissionId;

  private String permissionCode;

  private String permissionName;

  private String fatherId;

  private String path;

  private int isMenu;
}
